﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HL.IconPro.MVVM.Models
{
    class IconInformationModel : Model
    {
        private string _name, _value;

        public IconInformationModel(string Name, string Value)
        {
            _name = Name;
            _value = Value;
        }

        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
                OnPropertyChanged("Name");
                OnPropertyChanged("ToString");
            }
        }

        public string Value
        {
            get
            {
                return _value;
            }
            set
            {
                _value = value;
                OnPropertyChanged("Value");
                OnPropertyChanged("ToString");
            }
        }

        public new string ToString
        {
            get
            {
                return Name + ": " + Value;
            }
        }

    }
}
